@extends('web.frame_layout')
<?php $parent_menu = "财务中心"; $menu_selected = "打款申请";?>
<link rel="stylesheet" href="{{asset('remit/css/pay-money.css')}}">
@section('content')
    <div class="m-right-nr">
        <div class="pm-right">
            <div class="pm-msg">
                会员编号：<span class="u-333">{{$user->no}}</span>&nbsp;&nbsp;
                汇款方式：<span class="u-red">
                    @if($log->type==\App\Models\MWallet::$PAY_TYPE_ZFB)
                        支付宝
                    @elseif($log->type==\App\Models\MWallet::$PAY_TYPE_WX)
                        微信
                    @elseif($log->type==\App\Models\MWallet::$PAY_TYPE_YHK)
                        银行卡
                    @endif
                </span>&nbsp;&nbsp;
                充值金额：<span class="u-red">{{$log->money}}</span>
            </div>
            <div class="row pm-fs">
                <div class="col-sm-6 col-xs-12 col-md-6 col-lg-6" style="padding: 0">
                    <h2><img src="{{asset('remit/img/wx.png')}}" alt="">微信充值</h2>
                    <p style="color: red;">支付时请备注您的“会员编号”</p>
                    <img src="{{cv('account.wx_image')}}" alt="">
                    <p style="text-align: center;margin-top: -40px;margin-right: 0">微信账号：{{cv('account.wx_no')}}</p>
                </div>
                <div class="col-sm-6 col-xs-12 col-md-6 col-lg-6" style="padding: 0">
                    <h2><img src="{{asset('remit/img/zfb.png')}}" alt="">支付宝充值</h2>
                    <p style="color: red;">支付时请备注您的“会员编号”</p>
                    <img src="{{cv('account.alipay_image')}}" alt="">
                    <p style="text-align: center;margin-top: -40px;margin-right: 0">
                        支付宝账号：{{cv('account.alipay_no')}}</p>
                </div>
            </div>
            <div class="pm-ts">支付时请务必备注您的"会员编号"，以便优先充值</div>
            <div class="pm-bank">
                <h3>您可根据需求，选择相应的银行充值</h3>
                <div class="row pm-bank-table text-center ">

                    <div class="col-xs-12 col-sm-2_5 col-sm-4">
                        <p class="p-title">编号</p>
                        <p>对公账户</p>
                    </div>
                    <div class="col-xs-12 col-sm-2_5 col-sm-4">
                        <p class="p-title">银行</p>
                        <p><img src="{{cv('account.card_image')}}" style="height: 40px;margin-top: 2.5px" alt=""></p>
                    </div>
                    <div class="col-xs-12 col-sm-2_5 col-sm-4">
                        <p class="p-title">开户银行</p>
                        <p>{{cv('account.bank_name')}}</p>
                    </div>
                    <div class="col-xs-12 col-sm-2_5 col-sm-4">
                        <p class="p-title">银行卡号</p>
                        <p>{{cv('account.card_no')}}</p>
                    </div>
                    <div class="col-xs-12 col-sm-2_5 col-sm-4">
                        <p class="p-title">开户名</p>
                        <p> {{cv('account.card_name')}}</p>
                    </div>

                </div>
                <div class="pm-ywc">
                    <button class="pm-wczf" id="go_back">返回上一步</button>
                    <button class="pm-wczf" id="has_pay">我已打款</button>
                    <p class="pm-ywc-ts">支付完毕后，请手动点击“我已打款”，以便完成充值</p>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('footer')
    <script type="text/javascript">
        $("#has_pay").click(function () {
            window.location.href = "{{route('web.remit.has.pay',['id'=>$log->id])}}";
        });

        $("#go_back").click(function () {
            window.location.href="{{route('web.remit.logs')}}";
        })
    </script>
@endsection